<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/js/kindeditor-all-min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/zh_CN.js"></script>
<link rel="stylesheet" href="__PUBLIC__/css/kindeditor.css" type="text/css" />
<script type="text/javascript">
	<if condition="C('ismobile') neq 1">
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[name="content"]', {
				uploadJson:'__APP__/index.php/File/editor/',
				allowFileManager : true,
				loadStyleMode : false,
				fileManagerJson: "__APP__/index.php/File/manager/"
			});
		});
	</if>
</script>
<div class="container">
	<!-- Docs nav ========================nav========================== -->
	<div class="page-header">
		<h4>修改 职位列表</h4>
	</div>
	<div class="row">
		<div class="span12">
			<include file="Public:alert" />
			<form action="__APP__/index.php/Positions/edit/" method="post">
				<input type="hidden" name="id" value="{$vo.pos_id}" />
				<table class="table" border="0" cellspacing="1" cellpadding="0">
					<thead>
						<tr>
							<td colspan="2"><input name="submit" class="btn btn-primary" type="submit" value="保存"/>&nbsp; <input class="btn btn-primary" name="submit" type="submit" value="保存 & 新增"/> &nbsp;<input class="btn" type="button" onclick="javascript:history.go(-1)" value="返回"/></td>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="2"><input class="btn btn-primary"  name="submit" type="submit" value="保存"/> &nbsp;<input class="btn btn-primary" type="submit" value="保存 & 新增"/>&nbsp; <input class="btn" type="button" onclick="javascript:history.go(-1)" value="返回"/></td>
						</tr>
					</tfoot>
					<tbody>
						
						<tr>
							<td class="tdleft">招聘职位</td>
							<td><input class="span3" type="text" name="name" id="name" size="30" placeholder="请输入招聘职位" value="{$vo.name}"></td>
						</tr>


						<tr>
							<td class="tdleft">职位类型</td>
							<td><input class="span3" type="industry" name="industry" id="industry" size="30" placeholder="请输入行业" value="{$vo.industry}"></td>
						</tr>

						<!-- tr>
							<td class="tdleft">公司</td>
							<td><input class="span3" type="text" name="company" id="company" size="30" placeholder="请输入company" value="{$vo.company}"></td>
						</tr-->


						<tr>
							<td class="tdleft">招聘人数</td>
							<td><input class="span3" type="text" name="num" id="num" size="30" placeholder="请输入招聘人数" value="{$vo.num}"></td>
						</tr>

						<tr>
							<td class="tdleft">性别</td>
							<td><input class="span3" type="text" name="sex" id="sex" size="30" placeholder="性别" value="{$vo.sex}"></td>
						</tr>

						<tr>
							<td class="tdleft">月薪范围</td>
							<td><input class="span3" type="text" name="salary" id="salary" size="30" placeholder="请输入月薪范围" value="{$vo.salary}"></td>
						</tr>


						<tr>
							<td class="tdleft">最低学历</td>
							<td><input class="span3" type="text" name="zdxl" id="zdxl" size="30" placeholder="请输入最低学历" value="{$vo.zdxl}"></td>
						</tr>



						<tr>
							<td class="tdleft">地点</td>
							<td><input class="span3" type="text" name="place" id="place" size="30" placeholder="请输入地点" value="{$vo.place}"></td>
						</tr>

						<!-- tr>
							<td class="tdleft">公司规模</td>
							<td><input class="span3" type="text" name="gsgm" id="gsgm" size="30" placeholder="请输入公司规模" value="{$vo.gsgm}"></td>
						</tr>

						<tr>
							<td class="tdleft">薪资福利</td>
							<td><input class="span3" type="text" name="xzfl" id="xzfl" size="30" placeholder="请输入薪资福利" value="{$vo.xzfl}"></td>
						</tr-->

						<tr>
							<td class="tdleft">工作性质</td>
							<td><input class="span3" type="text" name="xinzi" id="xinzi" size="30" placeholder="请输入工作性质" value="{$vo.xinzi}"></td>
						</tr>
						
						<tr>
							<td class="tdleft">年龄要求</td>
							<td><input class="span3" type="text" name="xinzi" id="xinzi" size="30" placeholder="年龄要求" value="{$vo.age}"></td>
						</tr>

						<tr>
							<td class="tdleft">工作经验</td>
							<td><input class="span3" type="text" name="gzjy" id="gzjy" size="30" placeholder="请输入工作经验" value="{$vo.gzjy}"></td>
						</tr>

						<tr>
							<td class="tdleft">详情</td>
							<td>
								<textarea name="content" id="content" style="width: 800px; height: 350px;">{$vo.content}</textarea>
							</td>
						</tr>
						<tr>
							<td class="tdleft">招聘类型</td>
							<td>
                              <input type="radio" name="class" value="1" <if condition="$vo.class eq 1">checked</if>> 社会招聘
                              <input type="radio" name="class" value="2" <if condition="$vo.class eq 2">checked</if>> 学校招聘
                            </td>
						</tr>
						
						<tr>
							<td class="tdleft">启用</td>
							<td>
                              <input type="radio" name="status" value="1" <if condition="$vo.status eq 1">checked</if>>  启用
                              <input type="radio" name="status" value="0" <if condition="$vo.status eq 0">checked</if>>  停用
                            </td>
						</tr>
						<tr>
							<td class="tdleft">发布日期</td>
							<td><input class="span3 date" type="text" name="create_time" id="create_time" size="30" placeholder="发布日期" value="<?php echo date('Y-m-d',$vo['create_time']);?>"></td>
						</tr>
						<tr>
							<td class="tdleft">到期日期</td>
							<td><input class="span3 date" type="text" name="end_time" id="end_time" size="30" placeholder="到期日期" value="<?php echo date('Y-m-d',$vo['end_time']);?>"></td>
						</tr>
					</tbody>
				</table>
			</form>

		</div>
	</div>
</div>

<script type="text/javascript">
	<if condition="C('ismobile') eq 1">
		width=$('.container').width() * 0.9;
		$("#content").css({
			width : width
		});
	</if>
					

	$('.date').datepicker({
	       autoclose: true,
	       format: "yyyy-mm-dd"
	});

	$(".fa-send-o").parent().parent().addClass("active");
	$(".fa-briefcase:first").parent().parent().addClass("active");
</script>
<include file="Public:footer" />